package com.lsh.airticket.dao;

import com.lsh.airticket.entity.ModelSpace;
import com.lsh.airticket.entity.OneModelAllSpace;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author lsh
 * @date 2021/2/18
 **/
@Repository
public interface ModelSpaceDao {

    //通过 model 查找所有的 space
    List<OneModelAllSpace> findModelIdBySpace(Integer Model);

    //添加一条数据
    int insertTbModelSpace(ModelSpace modelSpace);

    // 通过联合主键删除
    int deleteByModelSpaceId(HashMap<String, Object> map);
}
